import java.awt.*; import java.awt.event.*; import java.applet.Applet; public class Exam extends Applet implements MouseListener{ int x=100; int y=100; int alaServ=900; public Exam(){ addMouseListener(this); } public void mousePressed(MouseEvent e){ x=e.getX(); y=e.getY(); int samm=1; double sammuMuutus=1; Graphics g=getGraphics(); while (y